package mumethod;

import java.util.List;

import mudbconnection.DBQuestionnaires;
import mudbconnection.DBQuestions;
import muobject.Question;
import muobject.Questionnaire;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("AccessQuestionsService")
public class AccessQuestionsService implements AccessQuestions{

	@Autowired
	private DBQuestions dbQuestions;
	private List<Question> questions;
	private Question question;
	private ValidFunction validFunction;
	
	public List<Question> getQuestionByYear(String year) {
		return dbQuestions.getQuestionByYear(year);
	}
	
	public int getQuestionCountByYear(String year, String type){
		return dbQuestions.getQuestionCountByYear(year, type);
	}
	
}
